package org.streets.eis.ext.analysis;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Const {
	public static List<String> OPSIGN = new ArrayList<String>();
	public static Map<String,String> OPSIGNNAMES = new HashMap<String,String>();
	static {
		OPSIGN.add("=");
		OPSIGN.add(">");
		OPSIGN.add(">=");
		OPSIGN.add("<");
		OPSIGN.add("<=");
		OPSIGN.add("..%");
		OPSIGN.add("%..");
		OPSIGN.add("%..%");
		
		OPSIGNNAMES.put("=", "等于");
		OPSIGNNAMES.put(">", "大于");
		OPSIGNNAMES.put(">=", "大于等于");
		OPSIGNNAMES.put("<", "小于");
		OPSIGNNAMES.put("<=", "小于等于");
		OPSIGNNAMES.put("%..", "以  开头");
		OPSIGNNAMES.put("..%", "以  结尾");
		OPSIGNNAMES.put("%..%", "包含");
		
		//【增加其他的符号，需要处理构造SQL语句的地方】
		//包含 "% %"
		}
	
	public static List<String> ORDERSIGN = new ArrayList<String>();
	public static Map<String,String> ORDERSIGNNAMES = new HashMap<String,String>();
	static {
		ORDERSIGN.add("ASC");
		ORDERSIGN.add("DESC");
		ORDERSIGNNAMES.put("ASC", "升序");
		ORDERSIGNNAMES.put("DESC", "降序");
		}
	
	public static List<String> FUNCSIGN = new ArrayList<String>();
	public static Map<String,String> FUNCSIGNNAMES = new HashMap<String,String>();
	static {
		FUNCSIGN.add("count");
		FUNCSIGN.add("sum");
		FUNCSIGNNAMES.put("count", "统计个数");
		FUNCSIGNNAMES.put("sum", "统计求和");
		}
	
}
